﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SpeakOut.Model;

namespace SpeakOut.Service
{
    public interface IFrontEndService
    {
        IList<Post> GetPosts();
        IList<Post> GetPostsByCategory(string category);
        IList<Post> GetPostsByTag(string tag);
        IList<Post> GetPostsByMonth(int year, int month);
        IList<Post> SearchPosts(string value);
        Post GetPost(string permalink, DateTime datePublished);
        Post GetPost(Guid guid);
        IList<Post> GetRecentPosts(int quantity);
        IList<Category> GetCategories();
        IList<Comment> GetComments(Guid postId);
        IList<Category> GetCategories(Guid postId);
        void SaveComment(Comment comment);
    }
}
